using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI;

namespace Sedna.Core.Controller.Configurations
{
    public class Enum2ValueDataTranslator: BaseDataTranslator, IDataTranslator
    {
        public override object UnsafeTranslate(Control control, object value, Type targetType)
        {
            if (value==null)
            {
                return null;
            }
            return (int) value;
        }
    }
}
